package com.my.commons.constants
{
	
	[Bindable]
	public class ConstVars
	{
		public static const SERVER_IP_PORT:String="localhost:8088";
		
		
		//账号检查正则表达式
		public static const NAME_REGEX:String="^[a-zA-Z0-9]{4,16}$";
		public static const NAME_TIP:String="4-16個英文字母、數字";
		
		public static const EMAIL_REGEX:String="^[a-zA-Z0-9_\.]+@[a-zA-Z0-9-]+[\.a-zA-Z]+$";
		public static const EMAIL_TIP:String="輸入正確的email地址";
		
		public static const PHONE_REGEX:String="^1[3584]\\d{9}$";
		public static const PHONE_TIP:String="手機號碼不正確";
		
		public static const MONEY_REGEX:String="^[0-9]*$";
		public static const MONEY_TIP:String="金錢只能是數字或不能以0開頭.";
		
		public static const ALIAS_REGEX:String="^[a-zA-Z0-9]{0,16}$";
		public static const ALIAS_TIP:String="0~16個英文字母、數字";
		
		public static const CODE_REGEX:String="^[a-zA-Z0-9]{4}$";
		public static const CODE_TIP:String="4個英文字母、數字";
		
		public static const NUMBER_REGEX:String="^\\d+(.\\d+)?$";
		public static const NUMBER_TIP:String="格式不正確";
		
		public static const TITLE_REGEX:String="^\\S{0,50}$";
		public static const TITLE_TIP:String="0~50個非空字符";
		
		public static const CONTENT_REGEX:String="^\\S{5,300}$";
		public static const CONTENT_TIP:String="5~300個非空字符";
		
		//密码检查正则表达式
		public static const PASS_REGEX:String="^\\S{6,16}$";
		
		public static const PASS_TIP:String="6~16個非空字符";
		
		
		public static const REMARK_REGEX:String="\\S{0,50}$";
		
		public static const REMARK_TIP:String="0~50個非空字符";
		
		
		public function ConstVars()
		{
		}
		
	}
}